﻿@using Super.Mvc
@using Zen.Barcode
@model Super.Entities.Product
@{
    ViewBag.Title = "产品编辑";
}
@using (Html.AjaxBeginForm("edit", "product"))
{
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(a => a.ID)
        <p><label>产品分类:</label>
            @Html.DropDownListFor(a => a.Category_ID, (IEnumerable<SelectListItem>)ViewBag.Category, "请选择产品分类")
        </p>
        <div class="divider">
        </div>
        @Html.DWZTextBoxFor(a => a.Barcode, "产品编号")
        @Html.DWZTextBoxFor(a => a.Title, "产品名称").Required()
        @Html.DWZTextBoxFor(a => a.JianMa, "简码")
        @Html.DWZTextBoxFor(a => a.Model, "型号").Required()
        @Html.DWZTextBoxFor(a => a.Company, "厂家").Required()
        @Html.DWZTextBoxFor(a => a.Warrant, "质保【单位：月】").Required()
        @Html.DWZTextBoxFor(a => a.Summary, "简介")
        @Html.DWZDropDownListFor(a => a.IsOld, typeof(IsOldEnum), "成色")
          <div class="divider">
        </div>
        <p style=" width: 700px"><label>硬件接口：</label> 
            <input name="interface.ID" value="@ViewBag.interfaceIds" type="hidden">
            <input name="interface.Name" type="text" style="width: 300px" value="@ViewBag.interfaceNames"/>
            <a class="btnLook" href="/admin/interfaceType/subsearch" lookupgroup="interface">选择硬件接口</a> 
            <span class="info">(点击选择硬件接口【多选】)</span> </p>
        <div class="divider">
        </div>
        @Html.DWZTextBoxFor(a => a.CBPrice, "成本价").Required().Number()
        @Html.DWZTextBoxFor(a => a.WYLPrice, "微盈利价").Required().Number()
        @Html.DWZTextBoxFor(a => a.PFPrice, "批发价").Required().Number()
        @Html.DWZTextBoxFor(a => a.LSPrice, "零售价").Required().Number()
        <div class="divider">
        </div>
        @Html.DWZTextBoxFor(a => a.MaxCount, "上限").Required().Number()
        @Html.DWZTextBoxFor(a => a.MinCount, "下限").Required().Number()
        @Html.TextBoxFor(a => a.CreateTime, new { type = "hidden" })
        
    </div>
    @Html.DWZFormBar()
}
<style type="text/css">
    .pageFormContent p { width: 480px; }
    .gridScroller { height: 200px; }
</style>
